package zhklappoint.enums;

/**
 * 删除标记枚举类
 *
 */
public enum ENUM_ISDELETE {
	/**
	 * 删除
	 */
	DELETED(1),
	/**
	 * 未删除
	 */
	NOT_DELETED(0);

	public Integer value;

	private ENUM_ISDELETE(Integer value) {
		this.value = value;
	}

	public static String getName(Integer value) {
		switch (value) {
		case 0:
			return "未删除";
		case 1:
			return "已删除";
		default:
			return "";
		}
	}

	public static ENUM_ISDELETE getValue(Integer value) {
		for (ENUM_ISDELETE e : ENUM_ISDELETE.values()) {
			if (e.value == value) {
				return e;
			}
		}
		return null;
	}
}
